// 上部铅笔类
import {Pencil} from "./pencil.js";
import { Sprite } from "../base/sprite.js";

export class UpPencil extends Pencil{
  constructor(top){
    const image = Sprite.getImage("pencilUp");
    super(
      image, top
    );
  }
  draw(){
    // this.top pencil 笔尖 距离窗体最上面的距离
    this.y = this.top - this.height;
    super.draw();
  }
}